<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>

</head>

<body class="ms-theme-blue">

  <%@ include file="/WEB-INF/include/header.jsp"%>
  <%@ include file="/WEB-INF/include/submenu.jsp"%>

  <div class="container-fluid ms-container has-ms-sidemenu">

    <ol class="ms-breadcrumb breadcrumb">
      <li class="active">派车单月度报销信息统计</li>
    </ol>

    <div class="ms-content-layout" style="width: 100%; overflow-x: scroll;">
      <table class="table table-hover ms-table" style="min-width: 4200px;">
        <thead>
          <tr>
						<th>派车单号</th>
						<th>调度组号</th>
						<th>调度数量</th>
						<th>回单数量</th>
						<th>派车单日期</th>
						<th>起始地</th>
						<th>目的地</th>
						<th>驳运车号</th>
						<th>报销日期</th>
						<th>主驾驶员</th>
						<th>第一副驾驶员</th>
						<th>行驶公里数</th>
						<th>重载公里数</th>
						<th>空载公里数</th>
						<th>主驾重载工资单价</th>
						<th>主驾空载工资单价</th>
						<th>主驾工资</th>
						<th>路桥费</th>
						<th>修理费</th>
						<th>轮胎费</th>
						<th>总加油金额</th>
						<th>其它费用</th>
						<th>短驳补贴</th>
						<th>停车补贴</th>
						<th>住宿补贴</th>
						<th>银行取款手续费</th>
						<th>洗车费</th>
						<th>多点卸车补贴</th>
						<th>其他费用</th>
						<th>高速补贴</th>
						<th>交车费用</th>
						<th>带车补贴</th>
						<th>多点装车补贴</th>
						<th>冬季油差补贴</th>
						<th>通讯费补贴</th>
						<th>提车费用</th>
						<th>摆渡费</th>
						<th>油耗补贴</th>
						<th>延伸公里数</th>
						<th>油价补贴</th>
						<th>交通费</th>
						<th>广告费</th>
						<th>轮胎补贴(冻结)</th>
						<th>副驾带车费用</th>
						<th>线路包干费</th>
          </tr>
        </thead>
        
	      <tbody>
		      <c:forEach var="result" items="${result}">
						<tr>
						  <td>${result.dispatchOrderCode}</td>
						  <td>${result.shipmentGroupId}</td>
						  <td>${result.actualLoadNumber}</td>					
							<td>${result.accomplishConfirmNumber}</td>
							<td><fmt:formatDate value="${result.dispatchDate}" pattern="yyyy-MM-dd" /></td>
							<td>${result.startFacility}</td>
							<td>${result.destinationFacility}</td>
							<td>${result.vehicleName}</td>
							<td><fmt:formatDate value="${result.expenseReimburseDate}" pattern="yyyy-MM-dd" /></td>
							<td>${result.mainDriver}</td>
							<td>${result.firstDriver}</td>
							<td>${result.facilityDistance}</td>
							<td>${result.fullLoadDistance}</td>
							<td>${result.emptyLoadDistance}</td>
							<td>${result.mainDriverFullSalary}</td>
							<td>${result.mainDriverEmptySalary}</td>
							<td>${result.mainDriverSalary}</td>
							<td>${result.roadFee}</td>
							<td>${result.repairFee}</td>
							<td>${result.tyreFee}</td>
							<td>${result.totalOilFeeReimbursed}</td>
							<td>${result.otherFee}</td>
							<td>${result.otherFee1}</td>
							<td>${result.otherFee2}</td>
							<td>${result.otherFee3}</td>
							<td>${result.otherFee4}</td>
							<td>${result.otherFee5}</td>
							<td>${result.otherFee6}</td>
							<td>${result.otherFee7}</td>
							<td>${result.otherFee8}</td>
							<td>${result.otherFee9}</td>
							<td>${result.otherFee10}</td>
							<td>${result.otherFee11}</td>
							<td>${result.otherFee12}</td>
							<td>${result.otherFee13}</td>
							<td>${result.otherFee14}</td>
							<td>${result.otherFee15}</td>
							<td>${result.otherFee16}</td>
							<td>${result.otherFee17}</td>
							<td>${result.otherFee18}</td>
							<td>${result.otherFee19}</td>
							<td>${result.otherFee20}</td>
							<td>${result.otherFee21}</td>
							<td>${result.otherFee22}</td>
							<td>${result.otherFee23}</td>
						</tr>
					</c:forEach>
	      </tbody>

        <tfoot>
          <tr>
            <td colspan="45" class="no-vertical-padding">
              <div class="pull-left">
                <jsp:include page="/WEB-INF/include/page.jsp">
                  <jsp:param name="url" value="${ctx.host}/exports" />
                  <jsp:param name="queryString" value="${queryString}" />
                </jsp:include>
              </div>
              
              <div class="pull-right">
                <c:if test="${page.totals > 0}">
                  <a href="${ctx.host}/exports/reimbursement-export?${queryString}&per_page=${config.everyPage}&page=${page.currentPage}" class="btn btn-default ms-export">输出当前记录</a>
                  <a href="${ctx.host}/exports/reimbursement-export?${queryString}&per_page=${config.limit}&page=1" class="btn btn-default ms-export">输出所有记录</a>
                </c:if>
              </div>
            </td>
          </tr>
        </tfoot>
      </table>

    </div>
  </div>
  
  <%@ include file="/WEB-INF/include/script.jsp"%>
  
</body>
</html>